package com.tyl.service.impl;

import com.tyl.entity.AttrGroup;
import com.tyl.mapper.AttrGroupMapper;
import com.tyl.service.IAttrGroupService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 属性分组 服务实现类
 * </p>
 *
 * @author 汤云龙
 * @since 2022-03-23
 */
@Service
@Transactional(propagation = Propagation.REQUIRED)
public class AttrGroupServiceImpl extends ServiceImpl<AttrGroupMapper, AttrGroup> implements IAttrGroupService {

    @Override
    @Transactional(readOnly = true)
    public List<AttrGroup> selectByCategoryId(Long categoryId) {
        return baseMapper.selectByCategoryId(categoryId);
    }
}
